//
//  LLQrcodeItem.m
//  Weibo
//
//  Created by 李灵斌 on 15-1-31.
//  Copyright (c) 2015年 apple. All rights reserved.
//

#import "LLQrcodeItem.h"

@implementation LLQrcodeItem

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.titleLabel.textAlignment = NSTextAlignmentCenter;
//        self.imageView.contentMode = UIViewContentModeCenter;
        self.titleLabel.font = [UIFont systemFontOfSize:13];
    }
    return self;
}

- (void)layoutSubviews{
    
    [super layoutSubviews];
    self.imageView.y = 15;
    self.titleLabel.y = CGRectGetMaxY(self.imageView.frame);
    
    self.imageView.centerX = self.width * 0.5;
    self.titleLabel.centerX = self.imageView.centerX;
}

- (void)setHighlighted:(BOOL)highlighted{}

@end
